package tedu.study.day06;

public class Day06Expand {
    public static void main(String[] args) {
        int[] a = generate(10,15);
        for(int i=0;i<a.length;i++){
            System.out.println(a[i]);

        }
    }

    public static int[] generate(int len,int max){
        int[] arr = new int[len];
        for(int i=0;i<arr.length;i++){
            arr[i] = (int)(Math.random()*(max+1));
        }
        return arr;
    }
}
